package cn.lili.eventbus.handlers;

import cn.lili.eventbus.event.NoticeMessageEvent;
import cn.lili.modules.message.entity.dto.NoticeMessageDTO;
import cn.lili.modules.message.service.NoticeMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;

/**
 * @Author Sylow
 * @Description
 * @Date: Created in 15:37 2025/6/19
 */
@Deprecated
public class NoticeMessageEventHandler {

    /**
     * 站内信
     */
    @Autowired
    private NoticeMessageService noticeMessageService;

    @EventListener
    public void handleNoticeMessageEvent(NoticeMessageEvent event) {
        NoticeMessageDTO noticeMessageDTO = (NoticeMessageDTO)event.getData();
        noticeMessageService.noticeMessage(noticeMessageDTO);

    }
}
